package com.wc.alorithm_luogu.P5742;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/24 14:37
 * @description
 * https://www.luogu.com.cn/problem/P5742
 * 评等级
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        StringBuilder ans = new StringBuilder();
        String excellent = "Excellent";
        String noeExcellent = "Not excellent";
        while (n-- > 0) {
            int sNumber = sc.nextInt();
            int score1 = sc.nextInt();
            int score2 = sc.nextInt();
            if (score1 + score2 > 140 && score1 * 7 + score2 * 3 >= 800) {
                ans.append(excellent);
            } else {
                ans.append(noeExcellent);
            }
            ans.append('\n');
        }
        System.out.print(ans);
    }
}
